import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SimpleDatasourceComponent } from './datasource/datasource.component';
import { SimpleListComponent } from './list/list.component';
import { SimpleCodegenComponent } from './codegen/codegen.component';

const routes: Routes = [

  { path: 'datasource', component: SimpleDatasourceComponent },
  { path: 'list/:code', component: SimpleListComponent },
  { path: 'codegen', component: SimpleCodegenComponent }];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SimpleRoutingModule { }
